/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package trabalho;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.Reader;
import java.io.StringReader;
import javax.swing.text.Utilities;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.Tokenizer;
import org.apache.lucene.analysis.core.LowerCaseTokenizer;
import org.apache.lucene.analysis.standard.StandardTokenizer;
import org.apache.lucene.analysis.synonym.SynonymMap;
import org.apache.lucene.analysis.synonym.WordnetSynonymParser;
import org.apache.lucene.codecs.lucene3x.Lucene3xCodec;
import org.apache.lucene.util.Version;

/**
 *
 * @author Felipe
 */
public class QueryAnalisador extends Analyzer{
        
    
    @Override
    protected TokenStreamComponents createComponents(String fieldName, Reader reader) {
        
        //Da para colocar um tratamento de sinonimos aqui para ficar melhor a busca
        
        return new MeuAnalisador().createComponents(fieldName, reader);  
        
    }  
        
    
}
